import request from './request'

export default {
  get: (url, params, headers) => {
    return request({
      url,
      method: 'get',
      params,
      headers: { ...headers }
    })
  },

  post: (url, data, headers) => {
    return request({
      url,
      method: 'post',
      data,
      headers: { ...headers }
    })
  },

  put: (url, data, headers) => {
    return request({
      url,
      method: 'put',
      data,
      headers: { ...headers }
    })
  },
  delete: (url, data, headers) => {
    return request({
      url,
      method: 'delete',
      data,
      headers: { ...headers }
    })
  }

}
